﻿<UserControl x:Class="IssueVision.Common.ReportPrintout"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:common="clr-namespace:IssueVision.Common;assembly=IssueVision.Common"
    mc:Ignorable="d" d:DesignHeight="471" d:DesignWidth="666">
    <UserControl.Resources>
        <common:IssueBrushConverter x:Key="issueBrushConverter"/>
        <DataTemplate x:Name="issueTemplate">
            <Border BorderBrush="Silver" BorderThickness="2" Background="{Binding Converter={StaticResource issueBrushConverter}}" Padding="4" HorizontalAlignment="Stretch" Margin="0,4">
                <StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding IssueID, StringFormat='Issue Id: \{0\} '}" />
                        <TextBlock Text="{Binding Title}" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding Priority, StringFormat='Pri: \{0\} '}" />
                        <TextBlock Text="{Binding Severity, StringFormat='Sev: \{0\}'}" />
                    </StackPanel>
                    <TextBlock TextWrapping="Wrap" Text="{Binding Description, StringFormat='Description: \{0\}', TargetNullValue='No Description'}" />
                </StackPanel>
            </Border>
        </DataTemplate>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White" Margin="15">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="300" x:Name="rowDefinition_Charts" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <Grid x:Name="grid_Charts" Grid.Row="1">
            <Image x:Name="image_Charts" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" />
        </Grid>
        <TextBlock Grid.Row="2" Text="Issues:" Margin="4" />
        <StackPanel x:Name="stackPanel_Issues" Grid.Row="3" />
        <TextBlock x:Name="textBlock_TitleText"
                   Grid.ColumnSpan="2"
                   FontWeight="Normal" FontFamily="Arial Black"
                   FontSize="20" FontStyle="Normal"
                   Text="Temporary Title Text" />
    </Grid>
</UserControl>
